import React, { Component } from 'react'

import './nav-bar.style.css'
export default class NavBar extends Component {
  render() {
    // console.log(this.props)
    return (
      //1.通过children的索引方式取出，但是不保序。
      <div className="nav_bar">
        <div className="nav_left">
          {this.props.children[0]}
        </div>
        <div className="nav_center">
          {this.props.children[1]}
        </div>
        <div className="nav_right">
          {this.props.children[2]}
        </div>
      </div>
    )
  }
}
